<#-- @ftlvariable name="entity" type="com.xci.edu.core.entity.EduStudentPeriodDetails" -->
<#include "/sys/_layout.ftl">
<div style="border: 1px #CCCCCC solid;padding-bottom: 15px;margin-bottom: 0px;">
    <div class="bbox1">
        <div class="student_topnav">
            <div class="titleH1">
                <div class="h1-title">我的课程 - ${currentStudent.eduCategoryName}</div>
            </div>
        </div>

        <div style="margin: 15px;">
            <div class="resumelist" style="margin-bottom: 5px">

                <div class="relist">

                    <div class="toptitle">
                        <div class="t">
                            <span class="h2-title">姓名:${currentStudent.name}</span>
                            <span class="date">培训总学时：20小时</span>
                            <span class="date">已完成总学时：${currentStudent.trainTotalPeriod}</span>
                            <span class="date">今天完成学时：36秒</span>
                            <span class="date">
                            <span>上次学习时间：</span>2020-12-22 09:59:14</span>
                        </div>
                    </div>
                    <div class="fbox" style="padding-bottom: 20px;">
                        身份证号码：${currentStudent.idNumber} <br>
                        联系电话：${currentStudent.phone} <br>
                        从业类别：${currentStudent.eduCategoryName} <br>
                    </div>
                    <div class="fbox">
                        住 址：${currentStudent.address}<br>
                        状态：<label class="primary-label">${currentStudent.statusText}</label>
                    </div>
                    <div class="clear"></div>

                </div>

            </div>

            <div id="eduPeriodData">

            </div>

            <div class="row">
                <div class="bottomtip">
                    <div class="tp h2-title">温馨提示</div>
                    <p>
                        1、学习开始时，系统会弹出验证窗口；验证通过后，系统开始记录学时；中间会依据时间设定，随机弹出验证窗口，未通过或等待验证超时，系统将不记录学时；学员想中断培训时，点击界面上侧签退按钮，通过验证后系统会记录学时。</p>
                    <p>2、每个课件系统设置规定学时，但学员培训学时达到规定学时后，系统将不在计时，学员可通过课程列表更换其他课件继续学习。</p>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    selectEduData();
    //region后台拼接
    function selectEduData() {
        $.ajax({
            url: '/train/eduStudentPeriod/student_period_data',
            type: 'GET',
            async: true,
            data: {
            },
            timeout: 3000,
            beforeSend: function (xhr) {
            },
            success: function (data, textStatus, jqXHR) {
                // console.log(data);
                $("#eduPeriodData").html(data);
            },
            error: function (xhr, textStatus) {
                console.log(xhr);
            },
            complete: function () {
                //console.log("complete");
            }
        })
    }
    //endregion

</script>

